#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("duel.in","r",stdin);
freopen("duel.out","w",stdout);
int n,cnt=0;
cin>>n;
int a[n],b[n];
for(int i=1;i<=n;i++){
    cin>>a[i];
    b[i]=a[i];
}
sort(a+1,a+1+n);
for(int i=1;i<=n-1;i++){
  if(a[i]<a[i+1]&&a[i]!=0&&a[i+1]!=0){
    a[i]=0;
  }
}
for(int i=1;i<=n;i++){
    if(a[i]!=0)cnt++;
}
cout<<cnt;
return 0;
}
